#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;

void test(){
    vector<int> vec={1,2,3,4,5,6};
    int count=count_if(vec.begin(),vec.end(),bind2nd(greater<int>(),5));
    cout<<"大于5的元素个数"<<count<<endl;
}
int main(int argc, char * argv[]){
    test();    
    return 0;
}

